RightB Function
Returns the last n bytes from the String specified.
Syntax
result = RightB( source, count )
result = stringVariable.RightB( count )
Parameters | ||
source |
The source string from which to get the bytes. |
|
count |
The number of bytes you wish to get from the source. If count is greater than the length of source, all bytes in source are returned. |
Notes
The RightB function returns bytes from the source string starting from the right side (as the name implies).
RightB treats source as a series of bytes rather than a series of characters. It should be used when source represents binary data. If you need to read characters rather than bytes, use the Right function.
Examples
This example uses the RightB function to return the last 5 bytes from a String.
See Also
AscB, ChrB, InStrB, LeftB, LenB, MidB, Right functions; String data type.